RGB Style [Red Green Blue]
In this, we need to give 3 numbers indicating the amount of red, green, and blue colors respectively required in the mixed color. The range of each color is from 0 to 255.
Note: rgba(0, 0, 0) is Black color and rgb(255, 255, 255) is White color.
Syntax:
h1{
color:rgb(0, 255, 0);
}
HTML Color Styles and HSL
HTML color styles offer various ways to specify colors on a webpage. For Example using HSL (Hue, Saturation, Lightness) allows for intuitive color control, where you adjust hue for the type of color, saturation for intensity, and lightness for brightness. Here are the different styles that can be used to create new colors by the combination of different colors.
Table of Content
- Hexadecimal Style
- RGB Style
- RGBA Style
- HSL Color
- HSLA Color